From: Ian Jackson Date: Wed, 23 Jun 2010 16:01:35 +0000 (+0100) Subject: prompt user to start xencommons first if it is not running. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11885^2~2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e724c3fa8860de463cfeddca9932571e6cb1883a;p=xen.git prompt user to start xencommons first if it is not running. Signed-off-by: Yu Zhiguo --- diff --git a/tools/hotplug/Linux/init.d/xend b/tools/hotplug/Linux/init.d/xend index 9ffbf55432..985db0c57c 100755 --- a/tools/hotplug/Linux/init.d/xend +++ b/tools/hotplug/Linux/init.d/xend @@ -37,6 +37,10 @@ function await_daemons_up case "$1" in start) + if [ -z "`ps -C xenconsoled -o pid=`" ]; then + echo "xencommons should be started first." + exit 1 + fi mkdir -p /var/lock/subsys touch /var/lock/subsys/xend xend start